<template>
    <!-- 课程列表主体 -->
    <main class="main-content">
      <CourseList />
    </main>
</template>

<script setup>
import { User } from '@element-plus/icons-vue'
import { useRouter } from 'vue-router'
import CourseList from '@/views/Course/CourseList.vue'

const router = useRouter()

const goToLogin = () => {
  router.push('/login')
}
</script>

<style scoped>
.home-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.header-left h1 {
  margin: 0;
  font-size: 20px;
}

.login-btn {
  color: white;
  font-size: 16px;
}

.login-btn:hover {
  color: #409eff;
}

.main-content {
  flex: 1;
  padding: 20px;
  background-color: #f5f7fa;
}
</style>